﻿//-----------------------------------------------------------------------
// <copyright file="Copyright.cs" author="Michael Herndon">
//     Copyright (c) CompanyName.  All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Amplify.Twitter
{
	#region Using Statements
	using System;
	using System.Collections.Generic;
	using System.Linq;
	using System.Text;

	using MbUnit.Framework;
	using Gallio.Framework;

	using Describe = MbUnit.Framework.TestsOnAttribute;
	using InContext = MbUnit.Framework.DescriptionAttribute;
	using It = MbUnit.Framework.TestAttribute;
	using Should = MbUnit.Framework.DescriptionAttribute;
	using By = MbUnit.Framework.AuthorAttribute;
	using Tag = MbUnit.Framework.CategoryAttribute;
	#endregion

	[
		Describe(typeof(BlockClient)),
		InContext("should perform its specified behavor."),
		Tag("Functional"),
		Ignore,
		By("Michael Herndon", "mherndon@opensourceconnections.com", "www.amptools.net")
	]
	public class BlockClientSpec : Spec
	{

		[It, Should(" have a public default constructor. ")]
		public void CreateAndDestroyBlockForAUser()
		{
			User[] users = Twitter.CreateUserClient().GetFriends();

			BlockClient client = Twitter.CreateBlockClient();

			User user =	client.Create(users[0].Screename);
			user.ShouldNotBeNull();
			user.Screename.ShouldBe(users[0].Screename);

			user = client.Destroy(user.Screename);
			user.ShouldNotBeNull();
			user.Screename.ShouldBe(users[0].Screename);
		}
	}
}
